package lambda;

public class Lambda3 {
    interface Foobar {
        int get(int i);
    }

    public void method() {
        Foobar foobar = (int x) -> {
                --x;
                return x;
            };
        System.out.println(foobar.get(5));
    }

    public static void main(String args[]) {
        Lambda3 l3 = new Lambda3();
        l3.method();
    }
}
